#!/usr/bin/python python3

a=int(input('请输入数字:'))
b=0
c=0
while b<32:
    if a & (1<<b):
        c += 1
    b += 1
print('此数字二进制中有',c,'个1')





